<div>
    <form class="form-horizontal bv-form"  role="form"  id="updateForm">
        <input type="hidden" name="subject_id" value="{$res.subject_id}">
        <input type="hidden" name="subject_type" value="{$res.subject_type}">
        <fieldset>
            <legend>基本信息</legend>
            <div class="form-group">
                <label class="col-sm-3 control-label">题目名称</label>
                <div class="col-sm-5">
                    <input type="text" class="form-control" value="{$res.subject_question}" name="subject_question">

                </div>
            </div>
            <!--<div class="form-group">-->
                <!--<label class="col-sm-3 control-label">分数</label>-->
                <!--<div class="col-sm-5">-->
                    <!--<input type="text" class="form-control" value="{$res.subject_score}" name="subject_score">-->

                <!--</div>-->
            <!--</div>-->

            {if $res['subject_type']==1}
            <div class="form-group">
                <label class="col-sm-3 control-label">题目</label>
                <div class="col-sm-5">
                    <input type="radio" name="subject_answer" value="1" {if $res['subject_answer']==1}checked="checked"{/if}>
                    <input type="text"style="width:309px;border-radius:3px;margin-bottom:0.3%;border:1px solid #ccc;height:30px;line-height: 30px;" name="subject_a" value="{$res.subject_a}">
                    <br/>
                    <input type="radio" name="subject_answer" value="2" {if $res['subject_answer']==2}checked="checked"{/if}>

                    <input type="text"style="margin-top:5px;width:309px;border-radius:3px;margin-bottom:0.3%;border:1px solid #ccc;height:30px;line-height: 30px;" name="subject_b" value="{$res.subject_b}">

                    <br/>
                    <input type="radio" name="subject_answer" value="3" {if $res['subject_answer']==3}checked="checked"{/if}>
                    <input type="text"style="margin-top:5px;width:309px;border-radius:3px;margin-bottom:0.3%;border:1px solid #ccc;height:30px;line-height: 30px;" name="subject_c" value="{$res.subject_c}">

                    <br/>
                    <input type="radio" name="subject_answer" value="4" {if $res['subject_answer']==4}checked="checked"{/if}>
                    <input type="text"style="margin-top:5px;width:309px;border-radius:3px;margin-bottom:0.3%;border:1px solid #ccc;height:30px;line-height: 30px;" name="subject_d" value="{$res.subject_d}">


                </div>
            </div>
            {else /}
            <div class="form-group">
                <label class="col-sm-3 control-label">题目</label>
                <div class="col-sm-5">
                    <input type="radio" value="1" name="subject_answer"{if $res['subject_answer']==1}checked="checked"{/if}>
                    <input type="text" style="width:309px;border-radius:3px;margin-bottom:0.3%;border:1px solid #ccc;height:30px;line-height: 30px;"  value="{$res.subject_a}" readonly>
                    <br/>
                    <input type="radio" value="2" name="subject_answer" {if $res['subject_answer']==2}checked="checked"{/if}>
                    <input type="text" style="margin-top:5px;width:309px;border-radius:3px;margin-bottom:0.3%;border:1px solid #ccc;height:30px;line-height: 30px;"  value="{$res.subject_b}" readonly>
                </div>
            </div>
            {/if}
            <div class="form-group">
                <label class="col-sm-3 control-label">试题简介</label>
                <div class="col-sm-5">
                    <textarea class="form-control"  rows="5" name="subject_introduction">{$res.subject_introduction}</textarea>
                </div>
            </div>
        </fieldset>
    </form>

</div>
<!-- 编辑器源码文件 -->




